package com.itheima.demo02;

public class DemoTest1 {

    public static void main(String[] args) {
        //打印数组
        int[] arr = {1,2,3,4,5,6};

        String s = ArrayUtil.printArray(arr);
        System.out.println(s);

        //求平均值
        double[] list = {1.1,2.31,2.5,4.3,5.2};
        double average = ArrayUtil.getAverage(list);
        System.out.println(average);

    }

}
